home *** CD-ROM | disk | FTP | other *** search
Wrap
XSetup plugin | 2001-01-21 | 2.5 KB | 77 lines
"FILE"="Xteq Systems X-Setup Plugin 6.0" "TYPE"="3" "COUNT"="4" "UIPATH 1"="Appearance\Desktop\Icons\'My Computer' Context Menu" "UIPATH 2"="Appearance\Files&Folders\'My Computer' Context Menu" "NAME"="My Computer Drives #3" "VERSION"="1.05" "LANGUAGE"="VBScript" "TEXT 1"="5) Name:" "TEXT 2"="5) Command:" "TEXT 3"="6) Name:" "TEXT 4"="6) Command:" "DESCRIPTION 1"="This plug-in can be used to add two Drives to the context menu that appears if you right-click on the My Computer desktop icon." "DESCRIPTION 2"="First, enter a name for the location (e.g. "Go To Drive A") in the field "Name". Then browse to the location of explorer.exe [usually C:\Windows] and add [after a space] "A:\" [no quotes] in the "Command" space." "DESCRIPTION 3"="To remove the command again, clear both the "Name" and the "Command" field and press "Apply"." "DESCRIPTION 4"="An example:" "DESCRIPTION 5"="1) Name: Go To Drive A" "DESCRIPTION 6"="1) Command: C:\Windows\explorer.exe A:\" "AUTHOR"="Ojatex@aol.com" "CONTACTURL"="http://members.aol.com/ojatex/" "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved" "COMMENT 1"="For X-Setup program information, go to http://www.xteq.com" "COMMENT 2"="If you have more than 6 drives, email me for more plugins [text only pls - this is AOL not OE]." sPath1="HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\Shell\XQXSETCMD5\" sPath2="HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\Shell\XQXSETCMD6\" sCMD="Command\@" Sub Plugin_Initialize s=RegReadValue(sPath1 & sCMD) if len(s)>0 then s=RegReadValue(sPath1 & "@") SetUIElement 1,s s=RegReadValue(sPath1 & sCMD) SetUIElement 2,s end if s=RegReadValue(sPath2 & sCMD) if len(s)>0 then s=RegReadValue(sPath2 & "@") SetUIElement 3,s s=RegReadValue(sPath2 & sCMD) SetUIElement 4,s end if End Sub Sub Plugin_Apply(ElementIndex,ElementSubIndex) s1=GetUIElement(1) s2=GetUIElement(2) if len(s1)>0 or len(s2)>0 then Call RegWriteValue(sPath1 & sCMD,s2,1) Call RegWriteValue(sPath1 & "@",s1,1) else if IsEmpty(RegReadValue(sPath1 & sCMD))=false then Call RegDeletePath(sPath1 & "Command") Call RegDeletePath(sPath1) end if end if s1=GetUIElement(3) s2=GetUIElement(4) if len(s1)>0 or len(s2)>0 then Call RegWriteValue(sPath2 & sCMD,s2,1) Call RegWriteValue(sPath2 & "@",s1,1) else if IsEmpty(RegReadValue(sPath2 & sCMD))=false then Call RegDeletePath(sPath2 & "Command") Call RegDeletePath(sPath2) end if end if End Sub Sub Plugin_Terminate End Sub